<template>
  <div class="chat-content-empty">
    <div class="chat-content-empty-title">
      <div>
        <img src="@/assets/images/labor/robot-ai.png" alt="" />
        <div>Hi，我是 小钛</div>
      </div>
      <div class="chat-content-empty-title-tips">
        我可以帮你写代码、写作各种创意内容，请把你的任务交给我吧~
      </div>
    </div>
    <div class="chat-content-empty-tabs" style="display:none">
      <div class="chat-content-empty-tab active">
        <img src="@/assets/images/labor/comment-icon.png" alt="" />
        <span>合规咨询</span>
      </div>
      <div class="chat-content-empty-tab">
        <img src="@/assets/images/labor/specialty-icon.png" alt="" />
        <span>专业研究</span>
        <div class="coming-soon">
          <img src="@/assets/images/labor/coming-soon.png" alt="" />
        </div>
      </div>
    </div>
    <div class="chat-content-empty-question" style="display:none">
      <div
        class="chat-content-empty-question-item"
        @click="sendFn('用人单位发出offer后又反悔的，需要赔偿吗？')"
      >
        <div class="chat-content-empty-question-item-header">
          <img src="@/assets/images/labor/tips-icon.png" alt="" />
          <span>招聘入职</span>
        </div>
        <div class="chat-content-empty-question-item-tips">
          用人单位发出offer后又反悔的，需要赔偿吗？
        </div>
      </div>
      <div
        class="chat-content-empty-question-item"
        @click="sendFn('员工在参加单位组织的体育比赛时受伤算工伤吗？')"
      >
        <div class="chat-content-empty-question-item-header">
          <img src="@/assets/images/labor/doc-detail.png" alt="" />
          <span>在职管理</span>
        </div>
        <div class="chat-content-empty-question-item-tips">
          员工在参加单位组织的体育比赛时受伤算工伤吗？
        </div>
      </div>
      <div
        class="chat-content-empty-question-item"
        @click="sendFn('员工工作能力不足，用人单位可以直接辞退员工吗？')"
      >
        <div class="chat-content-empty-question-item-header">
          <img src="@/assets/images/labor/file-question.png" alt="" />
          <span>离职管理</span>
        </div>
        <div class="chat-content-empty-question-item-tips">
          员工工作能力不足，用人单位可以直接辞退员工吗？
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "GptEmpty",
  data() {
    return {
      defaultQuestion: [
        "季节性用工时间较短，可以不签书面劳动合同，采用口头协议吗？",
        "公司对劳动者发出offer后又反悔的，要赔偿吗？",
      ],
    };
  },
  methods: {
    sendFn(text) {
      this.$emit("sentCon", text);
    },
  },
};
</script>

<style lang="less" scoped>
.chat-content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  .chat-content-empty-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    > div {
      display: flex;
      align-items: center;
      > img {
        width: 113px;
      }
      > div {
        font-family: PingFang SC;
        font-size: 32px;
        font-weight: 600;
        line-height: 44.8px;
        color: #000;
      }
    }
    .chat-content-empty-title-tips {
      font-family: PingFang SC;
      font-size: 16px;
      font-weight: 400;
      line-height: 22.42px;
      color: #777;
      margin-left: 40px;
    }
  }
  .chat-content-empty-tabs {
    width: 256px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 22px;
    box-shadow: 0px 6px 30px 5px #0000000d;
    padding: 6px 0;
    margin-bottom: 34px;
    .chat-content-empty-tab {
      position: relative;
      width: 112px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 16px;
      cursor: pointer;
      > img {
        width: 20px;
        margin-right: 4px;
      }
      > span {
        font-family: PingFang SC;
        font-size: 16px;
        font-weight: 500;
        line-height: 22.4px;
        color: #666;
      }
    }
    .coming-soon {
      display: flex;
      position: absolute;
      right: 7px;
      top: -15px;
      > img {
        width: 50px;
      }
    }
    .active {
      background-color: #fafbfc;
      > span {
        color: #333;
      }
    }
  }
  .chat-content-empty-question {
    display: flex;
    align-items: center;
    justify-content: center;
    .chat-content-empty-question-item {
      width: 227px;
      height: 90px;
      border-radius: 10px;
      background-color: #fff;
      padding: 15px;
      margin-right: 20px;
      box-shadow: 0px 6px 30px 5px #0000000d;
      cursor: pointer;
      &:last-child {
        margin-right: 0;
      }
    }
    .chat-content-empty-question-item-header {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      > img {
        width: 18px;
        margin-right: 4px;
      }
      > span {
        font-family: PingFang SC;
        font-size: 14px;
        font-weight: 500;
        line-height: 19.6px;
        color: #333;
      }
    }
    .chat-content-empty-question-item-tips {
      font-family: PingFang SC;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: #666;
    }
  }
}
</style>
